package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Maps;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Map;

@Getter
@AllArgsConstructor
public enum TradingPoolMessageEnum {

    TRADE_SELLE_ORDER(1, "TRADE_SELLE_ORDER_", false),
    QUANTITY_AND_PRICE_SYNCHRONIZATION(2, "QUANTITY_AND_PRICE_SYNCHRONIZATION_", false),
    ;


    @EnumValue
    private final int code;

    private final String desc;

    private final Boolean configuration;

    public static Map<String, String> getAll() {
        Map<String, String> map = Maps.newLinkedHashMap();
        for (TradingPoolMessageEnum value : TradingPoolMessageEnum.values()) {
            map.put(value.name(), value.getDesc());
        }
        return map;
    }

}
